/*
    Copyright 2010 Yurtaev Egor

    This file is part of webapp-dcpp-log.

    webapp-dcpp-log is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    webapp-dcpp-log is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with webapp-dcpp-log. If not, see http://www.gnu.org/licenses/.
 */

Ext.onReady(function(){
    var viewport = new Ext.Window({
        /*hideBorders:false,
        layout:"border",*/
        width:958,
        height:600,
        title: 'webapp-dcpp-log',
        layout:'border',
        maximizable: true,
        closable: false,
        resizable: true,
        autoScroll: false,
        items: [
        {
            xtype:"fieldset",
            title:"<a href='http://dc.omzona.ru'>dc.omzona.ru</a>",
            region:"center",
            hideBorders:false,
            autoScroll:false,
            checkboxToggle:false,
            split:false,
            layout:"border",
            items:[
            {
                xtype:"container",
                autoEl:"div",
                layout:"auto",
                id: 'update',
                region:"center",
                style: {
                    overflow: 'auto'
                }
            },
            ]
        },
        {
            xtype:"panel",
            region:"east",
            width:130,
            split:true,
            collapsible: true,
            title: 'Список пользователей',
            items: [
            {
                xtype:"container",
                autoEl:"div",
                html: '<select multiple id="userlist" style="width:100%;height:100%"></select>',
                layout:"auto"
            }
            ]
        }
        ]
    })
    viewport.show();
})